<?php
require_once __DIR__. '/../vendor/autoload.php';

require_once __DIR__. '/../routes/web.php';

$url = $_SERVER['REQUEST_URI'];
$method = $_SERVER['REQUEST_METHOD'];
try {
    $response = $router->resolve($url, $method);
    echo $response;
} catch (Exception $e) {
    echo $e->getMessage();
}